--[[

        monster.lua
        exported by excel2lua.py
        from file:monster.xlsx

--]]

local _data = {
  [1] = {id = 1,res_id = 'yeyandark',skill_id_1 = 1,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '黑心叶阳',element = 1,lvId = 1,race = 3,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [2] = {id = 2,res_id = 'yeyandarkbeginer',skill_id_1 = 2,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '叶阳傀儡',element = 1,lvId = 1,race = 4,sex = 2,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [3] = {id = 3,res_id = 'batelite',skill_id_1 = 3,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '小恶魔',element = 0,lvId = 1,race = 2,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [4] = {id = 4,res_id = 'bear',skill_id_1 = 19,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '疯熊',element = 1,lvId = 1,race = 1,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [5] = {id = 5,res_id = 'biao',skill_id_1 = 2,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 8,name = '无心人',element = 2,lvId = 1,race = 2,sex = 2,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [6] = {id = 6,res_id = 'devilblood',skill_id_1 = 4,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '天魔',element = 1,lvId = 1,race = 3,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [7] = {id = 7,res_id = 'devilshark',skill_id_1 = 4,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '魔鱼妖',element = 3,lvId = 1,race = 4,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [8] = {id = 8,res_id = 'drunk',skill_id_1 = 5,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '醉汉',element = 3,lvId = 1,race = 2,sex = 2,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [9] = {id = 9,res_id = 'flyheadelite',skill_id_1 = 2,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 8,name = '恶魔头',element = 1,lvId = 1,race = 1,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [10] = {id = 10,res_id = 'foxboss',skill_id_1 = 8,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '九尾妖狐',element = 1,lvId = 1,race = 3,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [11] = {id = 11,res_id = 'foxelite',skill_id_1 = 6,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '妖狐',element = 2,lvId = 1,race = 4,sex = 2,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [12] = {id = 12,res_id = 'gemini',skill_id_1 = 2,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 8,name = '双头邪魔',element = 2,lvId = 1,race = 1,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [13] = {id = 13,res_id = 'geminifemale',skill_id_1 = 3,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '白莲花',element = 3,lvId = 1,race = 3,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [14] = {id = 14,res_id = 'geminimale',skill_id_1 = 2,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '莲花护法',element = 3,lvId = 1,race = 2,sex = 2,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [15] = {id = 15,res_id = 'gollingold',skill_id_1 = 5,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 8,name = '三眼小妖',element = 0,lvId = 1,race = 4,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
  [16] = {id = 16,res_id = 'huangxiaoyang',skill_id_1 = 3,skill_id_2 = 0,skill_id_3 = 0,skill_normal = 7,name = '黄小样',element = 0,lvId = 1,race = 1,sex = 1,equip = -1,equiplv = -1,magickey = -1,magickeylv = -1,},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
   [3] = 3,
   [4] = 4,
   [5] = 5,
   [6] = 6,
   [7] = 7,
   [8] = 8,
   [9] = 9,
   [10] = 10,
   [11] = 11,
   [12] = 12,
   [13] = 13,
   [14] = 14,
   [15] = 15,
   [16] = 16,
}

local monster={}

function monster.length() 
   return #_data 
end 

function monster.indexOf(index) 
   return _data[index] 
end 

function monster.get(id) 
  return monster.indexOf(id_to_index[id])
end 

return monster